/**
*  Module
*
* Description
*/
var app = angular.module('webapp');

app.service('SocialService', ['$http','$q',SocialService]);

function SocialService($http , $q){
	return {
		getLevel2Menu:function(data){
			return handleRequest('GET','/getLevel2Menu',data,$http,$q);
		},
		getPower:function(data){
			return handleRequest('GET','/getPower',data,$http,$q);
		},
		getSocialAll:function(data){
			return handleRequest('GET','/getSocialAll',data,$http,$q);
		},
		addSocial:function(data){
			return handleRequest('POST','/addSocial',data,$http,$q);
		},
		uploadSocial:function(data){
			return handleRequest('POST','/uploadSocial',data,$http,$q);
		},
		removeSocial:function(data){
			return handleRequest('POST','/removeSocial',data,$http,$q);
		}
	};
}